﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AssettDatabase.Common
{
    class CustomException : Exception
    {
        public CustomException(string message, Exception innerException) : base(message, innerException)
        {
            if (innerException != null)
            {
                message += innerException.ToString();
            }
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public CustomException() : base()
        {
        }
        /// <summary>
        /// Initializes a new instance of the class with a specified error message.
        /// </summary>
        /// <param name="message">The error message that explains the reason for the exception.</param>
        public CustomException(string message) : base(message)
        {
        }
    }
}
